<?php
 require '../GestionPermisos/conn.php';
   $id= $_GET["id"];
 	$SQLstr = "DELETE FROM `betrans`.`bt10encarg` WHERE `BT10IDEN` = '$id';";
    if (!$mysqli->query($SQLstr))
    {
          echo'<script language=javascript>
        alert("No se a podido Eliminar los datos")
        self.location="index.php"
      </script>';
    }
 	else
 	{	echo'<script language=javascript>
        alert("Borrado con exito")
        self.location="index.php"
      </script>';
  }
    $mysqli->close();

	require 'index.php';
?>